﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Account/UserProfileView.master"
    AutoEventWireup="true" CodeBehind="PersonalInfoView.aspx.cs" Inherits="Churchtoolkit.Web.PersonalInfoView" %>

<asp:Content ContentPlaceHolderID="tabContainer" runat="server">
    <table class="Details" cellspacing="0" cellpadding="5">
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="First name"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtFirstName"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Last name"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtLastName"></asp:TextBox>
                <asp:CustomValidator ID="cvldtxtLastName" runat="server" 
                    ControlToValidate="txtLastName" ErrorMessage="0006" 
                    onservervalidate="cvldtxtLastName_ServerValidate" 
                    ValidationGroup="PersonalInfo">*</asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Dispaly name"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtDisplayName"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Gender"></asp:Label>
            </td>
            <td>
                <asp:RadioButton runat="server" ID="rdbMale" Text="Male" Checked="true" GroupName="Gender" />
                <asp:RadioButton runat="server" ID="rdbFemale" Text="Female" GroupName="Gender" />
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Birth Date"></asp:Label>
            </td>
            <td>
                <ct:DateControl runat="server" ID="uxBirthDate" CssClass="Date" />
                <asp:CustomValidator ID="cvlduxBirthDate" runat="server" 
                    onservervalidate="cvlduxBirthDate_ServerValidate"
                    ValidationGroup="PersonalInfo" ControlToValidate="uxBirthDate" 
                    ErrorMessage="0009">*</asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Nationality"></asp:Label>
            </td>
            <td>
                <asp:DropDownList runat="server" ID="ddlNationality">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Country"></asp:Label>
            </td>
            <td>
                <asp:DropDownList runat="server" ID="ddlCountry">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label runat="server" Text="Phone Information"></asp:Label>
                <hr />
            </td>
        </tr>
        <tr>
            <td class="label">
                <asp:Label runat="server" Text="Phone"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtPhone"></asp:TextBox>
           </td>
       </tr>
       <tr>
            <td class="label">
                <asp:Label runat="server" Text="Mobile"></asp:Label>
           </td>
           <td>
            <asp:TextBox runat="server" ID="txtExt" style="width:70px;"></asp:TextBox>-
            <asp:TextBox runat="server" ID="txtMobile"></asp:TextBox>
           </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label runat="server" Text="Address Information"></asp:Label>
                <hr />
            </td>
         </tr>
         <tr>
            <td class="label">
                <asp:Label runat="server" Text="Street"></asp:Label>
           </td>
           <td>
            <asp:TextBox runat="server" ID="txtStreet"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            <asp:Label runat="server" Text="Building"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtBuilding"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            <asp:Label runat="server" Text="Floor"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtFloor"></asp:TextBox><br />
                            <asp:Label runat="server" Text="Note: For the base floor to be = 0"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            <asp:Label runat="server" Text="Appartment"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtAppartment"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            <asp:Label runat="server" Text="ZipCode"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtZipCode"></asp:TextBox>
                            <asp:CustomValidator ID="cvldtxtZipcode" runat="server" ErrorMessage="0008" 
                                ControlToValidate="txtZipCode" 
                                onservervalidate="cvldtxtZipcode_ServerValidate" SetFocusOnError="True" 
                                ValidationGroup="PersonalInfo">*</asp:CustomValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            <asp:Label runat="server" Text="Directions"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtDirections"></asp:TextBox>
                        </td>
                    </tr>
        <tr>
            <td colspan="2" class="footer">
            <table width="100%">
                <tr>
                    <td>
                        <asp:ValidationSummary runat="server" ValidationGroup="PersonalInfo" />
                    </td>
                    <td align="right" valign="top">
                        <asp:Button runat="server" ID="btnSave" CssClass="button" ValidationGroup="PersonalInfo" Text="Save" OnClick="btnSave_Click" />   
                    </td>
                </tr>
            </table>
            </td>
        </tr>
    </table>
    <ct:Notification runat="server" ID="cNotification" />
</asp:Content>
